package command.server;

public class CommandFactoryServer {

    public static CommandServer getCommand(String commandName) {
        switch (commandName) {
            case "createuserserver":
                return new CreateUserServer();
            case "getlistofusersserver":
                return new GetListOfUsersServer();
            case "inviteusertochatserver":
                return new InviteUserToChatServer();
            case "loginuserserver":
                return new LoginUserServer();
            case "asktheconversationhistoryserver":
                return new AskTheConversationHistoryServer();
            case "disconnectconversationserver":
                return new DisconnectConversationServer();
            case "sendmessageserver":
                return new SendMessageServer();
            case "disconnectuserserver":
                return new DisconnectUserServer();
            case "acceptinvitationserver":
                return new AcceptInvitationServer();
            default:
                return null;
        }
    }
}
